import { zrRequest } from "./index"

//获取套餐列表
export function getPackageList(data) {
  return zrRequest.get({
    url: "detect/package/list",
    data
  })
}

//获取检测项目
export function getProjectList(data){
  return zrRequest.get({
    url: "detect/project/list",
    data
  })
}

//根据套餐 获取详细的项目
export function queryProjectByPackageId(packageId){
  return zrRequest.get({
    url: `vehicleDetect/minProgram/queryProject/${packageId}`
  })
}

//获取剩余名额
export function queryStationOrderLimit(data) {
  return zrRequest.post({
    url: "vehicleDetect/minProgram/queryStationOrderLimit",
    data
  })
}

// 或者inst表详情数据
export function queryInstOrderInfo(data){
  return zrRequest.get({
    url: "detect/project/inst/list",
    data
  })
}

// 查询inst 某条详情记录
export function queryInstDeatilInfo(id){
  return zrRequest.get({
    url: `detect/project/inst/${id}`
  })
}

//获取套餐详情
export function getPackageDetailInfo(id) {
  return zrRequest.get({
    url: `detect/package/${id}`
  })
}



